<script language="javascript">
    $().ready(function() {
        // validar formulario del cliente
        $("#editClientForm").validate({
            rules: {
                name: "required",
                email: true
            },
            messages: {
                name: "Campo Obligatorio.",
                email: "Ingrese un email valido."
            }
        });
    } );
</script>

<article class="module width_full">

    <header><h3>Editar Cliente</h3></header>
    <div class="module_content">
        <form style="width: 600px;" class="cmxform" method="post" id="editClientForm" action="<?php echo $this->url(); ?>">
            <p>
                <label for="name">Nombre *</label>
                <input name="name" id="name" value="<?php echo $this->client->name; ?>"/>
            </p>
            <p>
                <label for="description">Descripcion</label>
                <textarea name="description" id="description"><?php echo $this->client->description; ?></textarea>
            </p>
            <p>
                <label for="email">Email</label>
                <input name="email" id="email" value="<?php echo $this->client->email; ?>"/>
            </p>
            <p>
                <label for="homepage">Pagina Web</label>
                <input name="homepage" id="homepage" value="<?php echo $this->client->homepage; ?>"/>
            </p>
            <p>
                <label for="phone">Telefono</label>
                <input name="phone" id="phone" value="<?php echo $this->client->phone; ?>"/>
            </p>
            <p>
                <label for="address">Direcci&oacute;n</label>
                <input name="address" id="address" value="<?php echo $this->client->address; ?>"/>
            </p>
            <p>
                <label for="city">Ciudad</label>
                <input name="city" id="city" value="<?php echo $this->client->city; ?>"/>
            </p>
            <p>
                <label for="country">Pa&iacute;s</label>
                <input name="country" id="country" value="<?php echo $this->client->country; ?>"/>
            </p>
            <div class="submit_link">
                <input type="submit" value="Guardar" class="alt_btn"/>
                <a class="button" href="<?php echo $this->url(array('action' => 'index', 'id' => null)) ?>">Close</a>
            </div>
        </form>
    </div>
    <footer></footer>
</article>